/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wli.web.db;

import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author wli
 */
@ManagedBean
@SessionScoped
public class VocabularyController {

    private VocabularyHelper vhelper;
    private List vlist;

    /** Creates a new instance of VocabularyController */
    public VocabularyController() {
        vhelper = new VocabularyHelper();
    }

    public List getVocabularyList() {
        if (vlist == null) {
            vlist = vhelper.getWordsList();
        }
        return vlist;
    }
    
    public String testJSF () {
        return "testJSF";
    }
}
